<template>
  <router-view v-slot="{ Component }">
    <component :is="Component" />
  </router-view>
</template>

<script lang="ts" setup name="app">
import { onMounted } from 'vue';

if (import.meta.env.VITE_APP_NODE_ENV === 'production') {
  const vConsole = document.getElementById('__vconsole');
  (vConsole as any).style.display = 'none';
}

onMounted(() => {
  const loadingDom = document.getElementById('MhLoading');
  if (loadingDom) {
    loadingDom.style.display = 'none';
    loadingDom.remove();
  }
});
</script>
